﻿/// <summary>
/// https://leetcode-cn.com/problems/palindrome-number/
/// </summary>
public class Solution
{
    public bool IsPalindrome(int x)
    {
        var str = x.ToString();
        return str == new string(str.Reverse().ToArray());
    }
}